PBM2PS

Section: User Commands (1)
Updated: 25-Jun-90
Index Return to Main Contents
 

NAME

pbm2ps - convert a PBM file to postscript (option for Scribe files)  

SYNOPSIS

pbm2ps [ -s ] [ scale ] < pbm > postscript
 

DESCRIPTION

This is an enhanced version of Poskanzer's pbmtops command that includes an option to generate "bare" files for including in documents (the -s or scribe option). It also prints the title at the top, if there is one attached to the image.

The scale if given must be an integer number which indicates how many output dots (at 300 dpi) are used to render a single pixel. The default is 1.  

EXAMPLE

Given a 480 by 600 pixel bitmap, create a postscript file with the largest integral scaling factor that fits on a regular page:


    % pbm2ps < foo.1bit > foo.PS

Given the same bitmap, create a postscript file with each input pixel represented by a 2x2 block of 300 dpi pixels on the output page (scaling factor 2):


    % pbm2ps 2 < foo.1bit > foo.PS

Note that the resulting image will be 3.2 inches wide and 4 inches tall (pixels * scale / 300 dpi).

Create the same image, but don't include document structuring commands (this allows the file to be included in other documents by formatters such as Scribe and TeX).


    % pbm2ps -s 2 < foo.1bit > foo.PS  

SEE ALSO

fbm2ps(1) for converting grayscale files. fbm(1) for general discussion, pbm(1) for PBM routines.  

BUGS

None known.  

HISTORY

Copyright (C) 1989,1990 by Michael Mauldin. Permission is granted to use this file in whole or in part for any purpose, educational, recreational or commercial, provided that this copyright notice is retained unchanged. This software is available to all free of charge by anonymous FTP and in the UUNET archives.
25-Jun-90 Michael Mauldin at Carnegie Mellon University
Release 1.0 mlm@cs.cmu.edu
07-Mar-89 Michael L. Mauldin at Carnegie Mellon University
Beta release (version 0.9) mlm@cs.cmu.edu


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO
BUGS
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:53:25 GMT, August 26, 2022